package com.sky.renren.activity;

import com.sky.renren.R;
//import com.sky.renren.library.RenrenWebViewClient;

import android.os.Bundle;
import android.view.KeyEvent;
import android.view.LayoutInflater;
import android.view.View;
//import android.webkit.WebView;

/**
 * @author Sky
 * 因webview放进闪屏中，此类暂时不用
 *
 */
public class LoginWebActivity extends BaseActivity {

//	private WebView web = null;
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		LayoutInflater inflater = getLayoutInflater();
		View view = inflater.inflate(R.layout.loginweb, null);
		setContentView(view);
//		web = (WebView)findViewById(R.id.loginweb);
//		setupWebView();
		
	}
	
//	private void setupWebView() {
//		web.setVerticalScrollBarEnabled(false);
//		web.setHorizontalScrollBarEnabled(false);
//		web.getSettings().setJavaScriptEnabled(true);
//		web.setWebViewClient(new RenrenWebViewClient());
//		String url = "http://www.baidu.com";
//		web.loadUrl(url);
//	}

	@Override
	public boolean onKeyDown(int keyCode, KeyEvent event) {
		 if (keyCode == KeyEvent.KEYCODE_BACK) {
			finish();
			return true;
		} else {
			return super.onKeyDown(keyCode, event);
		}
	}
}
